package com.example.srm.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;
import org.apache.ibatis.type.JdbcType;

/**
 * 
 * @TableName t_permission
 */
@TableName(value ="t_permission")
@Data
public class TPermission implements Serializable {
    /**
     * 
     */
    @TableId
    private String id;

    /**
     * 权限编码
     */
    private String code;

    /**
     * 权限名
     */
    private String name;

    /**
     * 父id
     */
    private String parentId;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 类型
     */
    private String type;
    /**
     * 是否为叶子节点
     */
    @TableField(jdbcType = JdbcType.BIT)
    private boolean isLeaf;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}